home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5903 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |g.c.Subj|ect: Re:|
|00000080| 20 66 77 72 69 74 65 20 | 68 65 6c 70 3f 0a 44 61 | fwrite |help?.Da|
|00000090| 74 65 3a 20 57 65 64 2c | 20 32 31 20 46 65 62 20 |te: Wed,| 21 Feb |
|000000a0| 31 39 39 36 20 31 34 3a | 35 37 3a 34 38 20 2d 30 |1996 14:|57:48 -0|
|000000b0| 36 30 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |600.Orga|nization|
|000000c0| 3a 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |: Univer|sity of |
|000000d0| 49 6f 77 61 2c 20 49 6f | 77 61 20 43 69 74 79 2c |Iowa, Io|wa City,|
|000000e0| 20 49 41 2c 20 55 53 41 | 0a 44 69 73 74 72 69 62 | IA, USA|.Distrib|
|000000f0| 75 74 69 6f 6e 3a 20 77 | 6f 72 6c 64 0a 4d 65 73 |ution: w|orld.Mes|
|00000100| 73 61 67 65 2d 49 44 3a | 20 3c 50 69 6e 65 2e 41 |sage-ID:| <Pine.A|
|00000110| 33 32 2e 33 2e 39 31 2e | 39 36 30 32 32 31 31 34 |32.3.91.|96022114|
|00000120| 35 32 30 35 2e 38 39 33 | 35 32 42 2d 31 30 30 30 |5205.893|52B-1000|
|00000130| 30 30 40 62 6c 61 63 6b | 2e 77 65 65 67 2e 75 69 |00@black|.weeg.ui|
|00000140| 6f 77 61 2e 65 64 75 3e | 0a 52 65 66 65 72 65 6e |owa.edu>|.Referen|
|00000150| 63 65 73 3a 20 3c 34 66 | 6d 61 69 67 24 37 6f 66 |ces: <4f|maig$7of|
|00000160| 40 6e 65 77 73 2e 67 6c | 6f 62 61 6c 31 2e 6e 65 |@news.gl|obal1.ne|
|00000170| 74 3e 20 3c 68 61 72 6d | 6f 6e 2e 38 32 34 31 36 |t> <harm|on.82416|
|00000180| 35 31 31 33 40 70 65 67 | 61 73 75 73 2e 6d 6f 6e |5113@peg|asus.mon|
|00000190| 74 63 6c 61 69 72 2e 65 | 64 75 3e 20 3c 64 61 6e |tclair.e|du> <dan|
|000001a0| 70 6f 70 2e 38 32 34 36 | 36 38 33 36 31 40 72 73 |pop.8246|68361@rs|
|000001b0| 63 65 72 6e 69 78 3e 20 | 3c 34 67 66 38 66 39 24 |cernix> |<4gf8f9$|
|000001c0| 68 6d 68 40 61 69 72 64 | 6d 68 6f 72 2e 67 65 6e |hmh@aird|mhor.gen|
|000001d0| 2e 6e 7a 3e 0a 4e 4e 54 | 50 2d 50 6f 73 74 69 6e |.nz>.NNT|P-Postin|
|000001e0| 67 2d 48 6f 73 74 3a 20 | 62 6c 61 63 6b 2e 77 65 |g-Host: |black.we|
|000001f0| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 0a 4d 69 6d |eg.uiowa|.edu.Mim|
|00000200| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|00000210| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 54 45 58 |ontent-T|ype: TEX|
|00000220| 54 2f 50 4c 41 49 4e 3b | 20 63 68 61 72 73 65 74 |T/PLAIN;| charset|
|00000230| 3d 55 53 2d 41 53 43 49 | 49 0a 58 2d 53 65 6e 64 |=US-ASCI|I.X-Send|
|00000240| 65 72 3a 20 72 6f 62 69 | 6e 73 6f 6e 40 62 6c 61 |er: robi|nson@bla|
|00000250| 63 6b 2e 77 65 65 67 2e | 75 69 6f 77 61 2e 65 64 |ck.weeg.|uiowa.ed|
|00000260| 75 0a 49 6e 2d 52 65 70 | 6c 79 2d 54 6f 3a 20 3c |u.In-Rep|ly-To: <|
|00000270| 34 67 66 38 66 39 24 68 | 6d 68 40 61 69 72 64 6d |4gf8f9$h|mh@airdm|
|00000280| 68 6f 72 2e 67 65 6e 2e | 6e 7a 3e 20 0a 0a 4f 6e |hor.gen.|nz> ..On|
|00000290| 20 32 32 20 46 65 62 20 | 31 39 39 36 2c 20 53 69 | 22 Feb |1996, Si|
|000002a0| 6d 6f 6e 20 48 6f 73 69 | 65 20 77 72 6f 74 65 3a |mon Hosi|e wrote:|
|000002b0| 0a 0a 3e 20 49 6e 20 3c | 68 61 72 6d 6f 6e 2e 38 |..> In <|harmon.8|
|000002c0| 32 34 31 36 35 31 31 33 | 40 70 65 67 61 73 75 73 |24165113|@pegasus|
|000002d0| 2e 6d 6f 6e 74 63 6c 61 | 69 72 2e 65 64 75 3e 20 |.montcla|ir.edu> |
|000002e0| 68 61 72 6d 6f 6e 40 70 | 65 67 61 73 75 73 2e 6d |harmon@p|egasus.m|
|000002f0| 6f 6e 74 63 6c 61 69 72 | 2e 65 64 75 20 28 44 65 |ontclair|.edu (De|
|00000300| 72 65 6b 20 48 61 72 6d | 6f 6e 29 20 77 72 69 74 |rek Harm|on) writ|
|00000310| 65 73 3a 0a 3e 20 3e 20 | 66 69 72 73 74 20 65 6c |es:.> > |first el|
|00000320| 65 6d 65 6e 74 20 69 6e | 20 6c 69 6e 65 2c 20 73 |ement in| line, s|
|00000330| 69 7a 65 6f 66 28 63 68 | 61 72 29 20 66 6f 72 20 |izeof(ch|ar) for |
|00000340| 73 69 7a 65 20 69 6e 73 | 75 72 65 73 20 63 6f 6d |size ins|ures com|
|00000350| 70 61 74 69 62 69 6c 69 | 74 79 20 6f 6e 20 6d 61 |patibili|ty on ma|
|00000360| 63 68 69 6e 65 73 0a 3e | 20 3e 20 77 68 65 72 65 |chines.>| > where|
|00000370| 20 61 20 63 68 61 72 61 | 63 74 65 72 20 69 73 20 | a chara|cter is |
|00000380| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 62 79 |more tha|n one by|
|00000390| 74 65 2c 0a 3e 20 0a 3e | 20 44 61 6e 20 50 6f 70 |te,.> .>| Dan Pop|
|000003a0| 3a 0a 3e 20 3e 20 4e 6f | 6e 73 65 6e 73 65 2e 20 |:.> > No|nsense. |
|000003b0| 20 73 69 7a 65 6f 66 28 | 63 68 61 72 29 20 69 73 | sizeof(|char) is|
|000003c0| 20 31 20 5f 62 79 20 64 | 65 66 69 6e 69 74 69 6f | 1 _by d|efinitio|
|000003d0| 6e 5f 2e 20 20 54 68 65 | 20 72 65 61 6c 20 72 65 |n_. The| real re|
|000003e0| 61 73 6f 6e 20 62 65 68 | 69 6e 64 0a 3e 20 3e 20 |ason beh|ind.> > |
|000003f0| 77 72 69 74 69 6e 67 20 | 73 69 7a 65 6f 66 28 63 |writing |sizeof(c|
|00000400| 68 61 72 29 20 69 73 20 | 74 6f 20 69 6d 70 72 6f |har) is |to impro|
|00000410| 76 65 20 74 68 65 20 72 | 65 61 64 61 62 69 6c 69 |ve the r|eadabili|
|00000420| 74 79 20 6f 66 20 74 68 | 65 20 63 6f 64 65 20 66 |ty of th|e code f|
|00000430| 6f 72 20 74 68 65 0a 3e | 20 3e 20 68 75 6d 61 6e |or the.>| > human|
|00000440| 20 72 65 61 64 65 72 2e | 20 20 54 6f 20 74 68 65 | reader.| To the|
|00000450| 20 63 6f 6d 70 69 6c 65 | 72 2c 20 73 69 7a 65 6f | compile|r, sizeo|
|00000460| 66 28 63 68 61 72 29 20 | 61 6e 64 20 31 20 61 72 |f(char) |and 1 ar|
|00000470| 65 20 65 71 75 69 76 61 | 6c 65 6e 74 20 69 6e 20 |e equiva|lent in |
|00000480| 6d 6f 73 74 0a 3e 20 3e | 20 63 6f 6e 74 65 78 74 |most.> >| context|
|00000490| 73 20 28 74 68 65 79 20 | 68 61 76 65 20 74 68 65 |s (they |have the|
|000004a0| 20 73 61 6d 65 20 76 61 | 6c 75 65 2c 20 62 75 74 | same va|lue, but|
|000004b0| 20 64 69 66 66 65 72 65 | 6e 74 20 74 79 70 65 73 | differe|nt types|
|000004c0| 29 2e 0a 3e 20 0a 3e 20 | 20 20 4f 68 20 49 20 77 |)..> .> | Oh I w|
|000004d0| 69 73 68 2e 2e 20 61 6e | 64 20 74 68 65 20 66 61 |ish.. an|d the fa|
|000004e0| 63 74 20 74 68 61 74 20 | 49 20 63 61 6e 20 61 72 |ct that |I can ar|
|000004f0| 67 75 65 20 61 67 61 69 | 6e 73 74 20 77 68 61 74 |gue agai|nst what|
|00000500| 20 79 6f 75 20 73 61 79 | 20 6a 75 73 74 20 67 6f | you say| just go|
|00000510| 65 73 0a 3e 20 74 6f 20 | 73 68 6f 77 20 28 69 66 |es.> to |show (if|
|00000520| 20 79 6f 75 20 6b 6e 65 | 77 20 77 68 61 74 20 49 | you kne|w what I|
|00000530| 27 64 20 6a 75 73 74 20 | 64 6f 6e 65 29 20 68 6f |'d just |done) ho|
|00000540| 77 20 73 74 75 70 69 64 | 20 49 20 77 61 73 2e 20 |w stupid| I was. |
|00000550| 20 57 61 74 63 6f 6d 20 | 73 75 70 70 6f 72 74 73 | Watcom |supports|
|00000560| 0a 3e 20 6d 75 6c 74 69 | 2d 62 79 74 65 20 63 68 |.> multi|-byte ch|
|00000570| 61 72 73 20 28 74 68 69 | 73 20 69 73 20 77 68 61 |ars (thi|s is wha|
|00000580| 74 20 69 74 20 63 61 6c | 6c 73 20 74 68 65 6d 29 |t it cal|ls them)|
|00000590| 2c 20 69 66 20 61 20 63 | 68 61 72 61 63 74 65 72 |, if a c|haracter|
|000005a0| 20 69 73 20 6d 6f 72 65 | 20 74 68 61 6e 0a 3e 20 | is more| than.> |
|000005b0| 6f 6e 65 20 62 79 74 65 | 2c 20 74 68 65 6e 20 69 |one byte|, then i|
|000005c0| 74 20 77 6f 75 6c 64 20 | 62 65 20 76 65 72 79 20 |t would |be very |
|000005d0| 64 69 66 66 69 63 75 6c | 74 20 74 6f 20 66 69 74 |difficul|t to fit|
|000005e0| 20 69 74 20 69 6e 20 74 | 6f 20 6f 6e 65 20 62 79 | it in t|o one by|
|000005f0| 74 65 2c 20 77 6f 75 6c | 64 20 69 74 0a 3e 20 6e |te, woul|d it.> n|
|00000600| 6f 74 3f 0a 0a 20 20 54 | 68 61 74 20 64 6f 65 73 |ot?.. T|hat does|
|00000610| 6e 27 74 20 63 6f 6e 74 | 72 61 64 69 63 74 20 44 |n't cont|radict D|
|00000620| 61 6e 2c 20 74 68 6f 75 | 67 68 2c 20 62 65 63 61 |an, thou|gh, beca|
|00000630| 75 73 65 20 61 20 6d 75 | 6c 74 69 2d 62 79 74 65 |use a mu|lti-byte|
|00000640| 20 63 68 61 72 20 69 73 | 20 0a 65 69 74 68 65 72 | char is| .either|
|00000650| 20 61 20 77 63 68 61 72 | 5f 74 20 28 6e 6f 74 20 | a wchar|_t (not |
|00000660| 61 20 63 68 61 72 29 20 | 6f 72 20 73 6f 6d 65 20 |a char) |or some |
|00000670| 73 79 73 74 65 6d 2d 73 | 70 65 63 69 66 69 63 20 |system-s|pecific |
|00000680| 74 68 69 6e 67 20 28 6c | 69 6b 65 20 74 68 65 20 |thing (l|ike the |
|00000690| 0a 4d 61 63 27 73 20 6d | 75 6c 74 69 2d 62 79 74 |.Mac's m|ulti-byt|
|000006a0| 65 20 63 68 61 72 61 63 | 74 65 72 73 29 2e 20 20 |e charac|ters). |
|000006b0| 53 69 6e 63 65 20 61 20 | 77 63 68 61 72 5f 74 20 |Since a |wchar_t |
|000006c0| 68 61 73 20 74 6f 20 62 | 65 20 61 74 20 6c 65 61 |has to b|e at lea|
|000006d0| 73 74 20 31 36 20 62 69 | 74 73 20 0a 49 49 52 43 |st 16 bi|ts .IIRC|
|000006e0| 2c 20 73 69 7a 65 6f 66 | 28 77 63 68 61 72 5f 74 |, sizeof|(wchar_t|
|000006f0| 29 20 63 6f 75 6c 64 20 | 62 65 20 61 73 20 6d 75 |) could |be as mu|
|00000700| 63 68 20 61 73 20 32 2e | 20 20 4f 6e 20 74 68 65 |ch as 2.| On the|
|00000710| 20 41 6c 70 68 61 20 49 | 20 75 73 65 20 61 74 20 | Alpha I| use at |
|00000720| 77 6f 72 6b 2c 20 0a 73 | 69 7a 65 6f 66 28 77 63 |work, .s|izeof(wc|
|00000730| 68 61 72 5f 74 29 20 3d | 3d 20 73 69 7a 65 6f 66 |har_t) =|= sizeof|
|00000740| 28 63 68 61 72 29 20 3d | 3d 20 73 69 7a 65 6f 66 |(char) =|= sizeof|
|00000750| 28 69 6e 74 29 20 3d 3d | 20 73 69 7a 65 6f 66 28 |(int) ==| sizeof(|
|00000760| 6c 6f 6e 67 20 69 6e 74 | 29 20 3d 3d 20 31 20 2d |long int|) == 1 -|
|00000770| 2d 20 0a 74 68 65 79 27 | 72 65 20 61 6c 6c 20 33 |- .they'|re all 3|
|00000780| 32 2d 62 69 74 20 74 79 | 70 65 73 2e 0a 20 20 4e |2-bit ty|pes.. N|
|00000790| 6f 74 65 20 74 68 61 74 | 20 6e 6f 20 6d 61 74 74 |ote that| no matt|
|000007a0| 65 72 20 68 6f 77 20 6d | 61 6e 79 20 38 2d 62 69 |er how m|any 8-bi|
|000007b0| 74 20 22 70 68 79 73 69 | 63 61 6c 22 20 62 79 74 |t "physi|cal" byt|
|000007c0| 65 73 20 61 20 63 68 61 | 72 20 74 61 6b 65 73 20 |es a cha|r takes |
|000007d0| 75 70 2c 20 0a 73 69 7a | 65 6f 66 28 63 68 61 72 |up, .siz|eof(char|
|000007e0| 29 20 77 69 6c 6c 20 5f | 61 6c 77 61 79 73 5f 20 |) will _|always_ |
|000007f0| 65 71 75 61 6c 20 31 2c | 20 62 65 63 61 75 73 65 |equal 1,| because|
|00000800| 20 61 20 22 43 22 20 62 | 79 74 65 20 69 73 20 64 | a "C" b|yte is d|
|00000810| 65 66 69 6e 65 64 20 61 | 73 20 61 20 63 68 61 72 |efined a|s a char|
|00000820| 2e 0a 0a 20 2d 2d 4a 61 | 6d 65 73 20 52 6f 62 69 |... --Ja|mes Robi|
|00000830| 6e 73 6f 6e 20 28 72 6f | 62 69 6e 73 6f 6e 40 63 |nson (ro|binson@c|
|00000840| 73 2e 75 69 6f 77 61 2e | 65 64 75 20 2d 6f 72 2d |s.uiowa.|edu -or-|
|00000850| 20 6a 61 6d 65 73 2d 72 | 6f 62 69 6e 73 6f 6e 40 | james-r|obinson@|
|00000860| 75 69 6f 77 61 2e 65 64 | 75 29 0a 2f 2a 20 20 20 |uiowa.ed|u)./* |
|00000870| 49 6e 64 65 65 64 2c 20 | 43 2b 2b 20 69 73 20 61 |Indeed, |C++ is a|
|00000880| 20 62 69 74 20 6f 66 20 | 61 6e 20 6f 64 64 62 61 | bit of |an oddba|
|00000890| 6c 6c 20 6f 66 20 61 20 | 6c 61 6e 67 75 61 67 65 |ll of a |language|
|000008a0| 20 2e 2e 2e 20 67 69 76 | 65 6e 20 74 68 65 20 77 | ... giv|en the w|
|000008b0| 61 79 20 74 68 61 74 20 | 2a 0a 20 2a 20 69 74 20 |ay that |*. * it |
|000008c0| 72 65 71 75 69 72 65 73 | 20 70 72 69 76 61 74 65 |requires| private|
|000008d0| 20 70 61 72 74 73 20 74 | 6f 20 62 65 20 76 69 73 | parts t|o be vis|
|000008e0| 69 62 6c 65 2e 20 20 54 | 68 69 73 20 69 6e 63 72 |ible. T|his incr|
|000008f0| 65 61 73 65 73 20 74 68 | 65 20 73 74 72 65 6e 67 |eases th|e streng|
|00000900| 74 68 20 6f 66 20 20 2a | 0a 20 2a 20 63 6f 75 70 |th of *|. * coup|
|00000910| 6c 69 6e 67 20 64 72 61 | 6d 61 74 69 63 61 6c 6c |ling dra|maticall|
|00000920| 79 2e 2e 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |y... | |
|00000930| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 20 44 72 | | -- Dr|
|00000940| 2e 20 52 69 63 68 20 41 | 72 74 79 6d 20 20 20 20 |. Rich A|rtym |
|00000950| 20 20 20 20 20 20 2a 2f | 0a | */|. |
+--------+-------------------------+-------------------------+--------+--------+